package com.agou.app.admin.dbconfig.bean;

import java.io.IOException;
import java.lang.reflect.Field;
import java.sql.ResultSet;
import java.sql.SQLException;

import com.agou.core.ss.SSException;
import com.agou.ssh.core.base.BaseTableBean;

/**
 * 管理员-用户信息
 * @author agou
 *
 */
public class TSAdminMenuNavi extends BaseTableBean{
	private static final long serialVersionUID = -7456165007624560631L;
	
	private long naviId;//导航ID
	private String naviName;//导航名称
	private String naviUrl;//导航URL
	private int isValid;//是否有效
	private int sort;//排序
	
	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}
	
	public long getNaviId() {
		return naviId;
	}

	public void setNaviId(long naviId) {
		this.naviId = naviId;
	}

	public String getNaviName() {
		return naviName;
	}

	public void setNaviName(String naviName) {
		this.naviName = naviName;
	}

	public int getIsValid() {
		return isValid;
	}

	public void setIsValid(int isValid) {
		this.isValid = isValid;
	}

	public String getNaviUrl() {
		return naviUrl;
	}

	public void setNaviUrl(String url) {
		this.naviUrl = url;
	}
	


	@Override
	public void fill(ResultSet rs) throws SSException, SQLException,
			IOException {
		
	}
	
	public String toString(){
		StringBuilder sbStr = new StringBuilder();
		Field[] fields=this.getClass().getDeclaredFields(); 
		for (Field field : fields) {
			try {
				sbStr.append(field.getName() + " = " + (String)field.get(this));
			} catch (Exception e) {
				sbStr.append(field.getName() + " = " + e.getMessage());
			} 
		}
		return sbStr.toString();
	}

}
